<meta charset="UTF-8"><link rel="stylesheet" type="text/css" href="../css/easyui_themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../css/easyui_themes/icon.css">
	<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../js/easyui-lang-zh_CN.js"></script>
<script src="../js/uploadfile.js"></script>
<link rel="stylesheet" href="../css/fileupdemo.css"/>
<?php 
$url="self_full_test"; 
require_once "../connect/toolconnect.php";  
$id = intval(trim($_GET['ID'])); 
$sql = "select * from {$url} where ID= {$id}"; 
$rs = mysql_query($sql); 
$row = mysql_fetch_assoc($rs); 
  ?>
<script type="text/javascript" > 
var furl= "#<?php echo $url; ?>" 
</script> 
<form action="self_full_test_app.php?ctr=edit" id="self_full_test" method="POST">
<table>
<tr>
	<td class="label"><label for="ID">序号：</label>
	</td>
	<td><input type="text" name="ID" id="ID" value="<?php echo $id ; ?>" class=" easyui-validatebox tb" data-options="required:true,validType:'length[1,255]'"/>

	</td>
</tr>
<tr>
	<td class="label"><label for="number">学号：</label>
	</td>
	<td><input type="text" name="number" id="number" value="<?php echo $row['number'] ; ?>" class=" easyui-validatebox tb" data-options="required:true,validType:'integ'"/>

	</td>
</tr>
<tr>
	<td class="label"><label for="name">姓名：</label>
	</td>
	<td><input type="text" name="name" id="name" value="<?php echo $row['name'] ; ?>" class=" easyui-validatebox tb" data-options="required:true,validType:'length[1,255]'"/>

	</td>
</tr>
<tr>
	<td class="label"><label for="translation">简介：</label>
	</td>
	<td><textarea id="translation" name="translation" cols="40" rows="15"><?php echo $row['translation'] ; ?></textarea>

	</td>
</tr>
<tr>
	<td class="label"><label for="time">填表时间：</label>
	</td>
	<td><input type="text" name="time" id="time" value="<?php echo $row['time'] ; ?>" required="required"  editable="false" class=" easyui-datetimebox"/>

	</td>
</tr>
<tr>
	<td class="label"><label for="score">绩效：</label>
	</td>
	<td><input type="text" name="score" id="score" value="<?php echo $row['score'] ; ?>" class=" easyui-validatebox tb" data-options="required:true,validType:'xiaoshuer'"/>

	</td>
</tr>
<tr>
	<td class="label"><label for="Ffruit">最喜欢的水果：</label>
	</td>
	<td>
	<input type="radio" id="0" name="Ffruit" value="A:苹果" /><label for="0">A:苹果</label> 
	<input type="radio" id="1" name="Ffruit" value="B:梨子" /><label for="1">B:梨子</label> 
	<input type="radio" id="2" name="Ffruit" value="C:桃子" /><label for="2">C:桃子</label> 
	<input type="radio" id="3" name="Ffruit" value="D:杏子" /><label for="3">D:杏子</label> 
	</td>
</tr>
<tr>
	<td class="label"><label for="Lfruit">喜欢的水果：</label>
	</td>
	<td>
	<input type="checkbox" id="0" name="Lfruit[]" value="A:苹果" /><label for="0">A:苹果</label>
	<input type="checkbox" id="1" name="Lfruit[]" value="B:梨子" /><label for="1">B:梨子</label>
	<input type="checkbox" id="2" name="Lfruit[]" value="C:桃子" /><label for="2">C:桃子</label>
	<input type="checkbox" id="3" name="Lfruit[]" value="D:杏子" /><label for="3">D:杏子</label>
	</td>
</tr>
<tr>
	<td class="label"><label for="Fnation">世界上最有潜力的国家：</label>
	</td>
	<td><select id="Fnation" name="Fnation">
	<option value="A:中国">A:中国</option>
	<option value="B:美国">B:美国</option>
	<option value="C:日本">C:日本</option>
	<option value="D:俄罗斯">D:俄罗斯</option>
</select>
	</td>
</tr>
<tr>
	<td class="label"><label for="Lnation">你喜欢那些国家：</label>
	</td>
	<td><select id="Lnation" name="Lnation[]" size="" multiple="multiple">
	<option value="A:中国">A:中国</option>
	<option value="B:美国">B:美国</option>
	<option value="C:日本">C:日本</option>
	<option value="D:俄罗斯">D:俄罗斯</option>
	<option value="E:印度">E:印度</option>
	<option value="F:法国">F:法国</option>
	<option value="G:加拿大">G:加拿大</option>
</select>

	</td>
</tr>
<tr>
	<td class="label">
	</td>
	<td><a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()" style="width:80px">提交</a>
	</td>
</tr>
	</table>
</form>
<script type="text/javascript" src="../js/my.js"></script><script>
<?php echo ("var Ffruit=\"".$row['Ffruit']."\"");?>;
$("input[ value='"+Ffruit+"'][ name='Ffruit']").attr("checked","checked");
</script><script>
<?php echo ("var Lfruit=\"".$row['Lfruit']."\"");?>;
Lfruit=Lfruit.split(';;');
for (i=0;i<Lfruit.length ;i++ ){
$("input[ value='"+Lfruit[i]+"'][ name='Lfruit[]']").attr("checked","checked");}
</script><script>
<?php echo ("var Fnation=\"".$row['Fnation']."\"");?>;
$("#Fnation").val(Fnation);
</script><script>
<?php echo ("var Lnation=\"".$row['Lnation']."\"");?>;
Lnation=Lnation.split(';;');
$("#Lnation").val(Lnation);
</script>